package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.WorkTime;
import stud.aistar.mapper.WorkTimeMapper;
import stud.aistar.service.IWorkTimeService;

import java.util.List;

/**
 * Created by Jcdz on 2019/9/28.
 */
@Service
@Transactional
public class WorkTimeServiceImpl implements IWorkTimeService{

    @Autowired
    private WorkTimeMapper workTimeMapper;

    @Override
    public List<WorkTime> findAll() {
        return workTimeMapper.findAll();
    }

    @Override
    public Integer findStatusByDocIdAndTimeId(Integer did, Integer tid) {
        return workTimeMapper.findStatusByDocIdAndTimeId(did,tid);
    }

    @Override
    public List<WorkTime> findByDocId(Integer id) {
        return workTimeMapper.findByDocId(id);
    }
}
